//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopRefundLog, MinishopRefundLogResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopRefundLogList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopRefundLogResponse>(`/uctoo/minishop_refund_log/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopRefundLog = async (id: string) => {
  return requestClient.get<MinishopRefundLog>(`/uctoo/minishop_refund_log/${id}`);
};

export const adductooMinishopRefundLog = async (data: Partial<MinishopRefundLog>) => {
  return requestClient.post<MinishopRefundLog>('/uctoo/minishop_refund_log/add', data);
};

export const edituctooMinishopRefundLog = async (data: Partial<MinishopRefundLog>) => {
  return requestClient.post<MinishopRefundLog>('/uctoo/minishop_refund_log/edit', data);
};

export const deleteuctooMinishopRefundLog = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_refund_log/del', { id });
};
